package com.supaur.demo.mybatis.dao;

import com.supaur.demo.mybatis.domain.ArticleDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author huangj
 * @date 2019/10/9
 */
public interface ArticleDAO {

    ArticleDO findOne(@Param("id") int id);

    boolean insertOne(ArticleDO articleDO);

    boolean updateOne(ArticleDO articleDO);

    boolean deleteOne(@Param("id") int id);

    List<ArticleDO> listByAuthor(int authorId);

}
